<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8'>
    <title>v-pre</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h2 v-pre>Vue</h2>
        <h2>当前的n值是<span v-text="n"></span></h2>
        <button @click="n++">点我n+1</button>
    </div>
</body>
<!--   JS   -->
    <script>
    new Vue({
            el:'#root',
            data:{
                n:1
            }
        })  
    </script>
</html>